 :root {
    --green-deep: #0d4f3c;
    --green-mid: #1a7a5e;
    --green-light: #2faa82;
    --gold: #c8922a;
    --gold-light: #e8b94f;
    --cream: #faf8f4;
    --warm-white: #ffffff;
    --gray-light: #f0ede8;
    --gray-mid: #c4bfb8;
    --gray-dark: #7a7470;
    --text-dark: #1c1a18;
    --text-body: #3d3a38;
    --error: #c0392b;
    --shadow: 0 2px 20px rgba(13,79,60,0.08);
    --shadow-hover: 0 8px 40px rgba(13,79,60,0.16);
    --radius: 12px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-body);
    min-height: 100vh;
  }

  /* ── TABS ── */
  .tab-bar {
    background: var(--green-deep);
    display: flex;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  }
  .tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    text-transform: uppercase;
  }
  .tab-btn:hover { color: var(--gold-light); }
  .tab-btn.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
    background: rgba(255,255,255,0.06);
  }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── HEADER ── */
  .form-header {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-light) 100%);
    padding: 10px 25px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 190px;
    width: 570px;
    border-radius: 10px;
    margin: 5px 5px 0 20px
  }
  .form-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .header-badge {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  .form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(17px, 4vw, 25px);
    color: white;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
  }
  .form-header p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 300;
    max-width: 500px;
    margin: 0 ;
    line-height: 1.6;
  }
  .gold-line {
    width: 200px;
    height: 3px;
    background: var(--gold);
    margin: 5px auto 0;
    border-radius: 2px;
  }

  /* ── FORM WRAPPER ── */
  .form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 5px 20px 60px;
  }

  /* ── SECTION CARD ── */
  .section-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .section-header {
    background: linear-gradient(90deg, var(--green-deep), var(--green-mid));
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;;
  }
  .section-number {
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .section-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .section-body { padding: 7px 6px; }

  /* ── FIELDS ── */
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .field-row.single { grid-template-columns: 1fr; }
  .field-row.triple { grid-template-columns: 1fr 1fr 1fr; }

  .field-group { display: flex; flex-direction: column; gap: 6px; }

  label {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-deep);
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }
  .required-star { color: var(--gold); margin-left: 3px; }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-mid);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--green-light);
    background: white;
    box-shadow: 0 0 0 3px rgba(47,170,130,0.12);
  }
  input.error, select.error { border-color: var(--error); }

  /* Select arrow */
  .select-wrap { position: relative; }
  .select-wrap::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 20%;
    transform: translateY(-50%);
    color: var(--green-mid);
    pointer-events: none;
    font-size: 14px;
  }
  select { cursor: pointer; padding-right: 36px; }

  /* Radio group for titre */
  .radio-group {
    display: flex;
    gap: 12px;
  }
  .radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--gray-mid);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--cream);
  }
  .radio-option input[type="radio"] { display: none; }
  .radio-option .radio-dot {
    width: 16px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--gray-mid);
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .radio-option:has(input:checked) {
    border-color: var(--green-light);
    background: rgba(47,170,130,0.06);
  }
  .radio-option:has(input:checked) .radio-dot {
    border-color: var(--green-light);
    background: var(--green-light);
    box-shadow: inset 0 0 0 3px white;
  }

  /* Hidden field */
  .conditional-field { display: none; }
  .conditional-field.visible { display: flex; flex-direction: column; gap: 6px; }

  /* Hint text */
  .hint-text {
    font-size: 11px;
    color: var(--gray-dark);
    font-style: italic;
    margin-top: 2px;
  }

  /* Legal notice */
  .legal-box {
    background: linear-gradient(135deg, rgba(156, 221, 237, 0.05), rgba(119, 220, 237, 0.05));
    border: 1px solid rgba(138, 222, 243, 0.15);
    border-left: 4px solid var(--green-mid);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 12px;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .legal-box strong { color: var(--green-deep); }

  /* Submit */
  .submit-area { text-align: center; padding-top: 8px; }
  .submit-btn {
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(13,79,60,0.3);
    position: relative;
    overflow: hidden;
  }
  .submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s;
  }
  .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13,79,60,0.4); }
  .submit-btn:hover::after { opacity: 1; }
  .submit-btn span { position: relative; z-index: 1; }

  /* Success message */
  .success-msg {
    display: none;
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 24px;
  }
  .success-msg .checkmark {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
  }
  .success-msg h3 {
    font-family: 'Playfair Display', serif;
    color: var(--green-deep);
    font-size: 22px;
    margin-bottom: 8px;
  }
  .success-msg p { color: var(--gray-dark); font-size: 14px; }

  /* ── GUIDE TAB ── */
  .guide-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 48px 32px 40px;
    text-align: center;
  }
  .guide-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3.5vw, 34px);
    color: white;
    margin-bottom: 10px;
  }
  .guide-header p { color: rgba(255,255,255,0.65); font-size: 14px; }

  .guide-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
  }

  .guide-step {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    overflow: hidden;
  }
  .guide-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fc;
    border-bottom: 1px solid #e8eaf0;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .step-icon.html { background: #fff3e0; }
  .step-icon.gform { background: #e8f5e9; }
  .step-icon.excel { background: #e3f2fd; }
  .step-icon.embed { background: #fce4ec; }

  .guide-step-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--text-dark);
  }
  .guide-step-header p {
    font-size: 12px;
    color: var(--gray-dark);
    margin-top: 2px;
  }
  .step-body { padding: 24px; }

  .code-block {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 12px 0;
    position: relative;
  }
  .code-block pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #cdd6f4;
    line-height: 1.6;
    white-space: pre;
  }
  .code-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 10px;
    color: rgba(205,214,244,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .copy-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 12px;
    transition: all 0.2s;
  }
  .copy-btn:hover { background: rgba(255,255,255,0.2); color: white; }

  .step-list { list-style: none; padding: 0; }
  .step-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    line-height: 1.5;
  }
  .step-list li:last-child { border-bottom: none; }
  .step-list li .num {
    width: 22px;
    height: 22px;
    background: var(--green-mid);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .step-list li .num.blue { background: #1565c0; }
  .step-list li .num.purple { background: #6a1b9a; }

  .info-box {
    background: rgba(47,170,130,0.08);
    border: 1px solid rgba(47,170,130,0.3);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--green-deep);
    margin: 12px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .info-box .icon { font-size: 16px; flex-shrink: 0; }

  .warning-box {
    background: rgba(200,146,42,0.08);
    border: 1px solid rgba(200,146,42,0.3);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #7a5a10;
    margin: 12px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .gs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .gs-col {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 16px;
  }
  .gs-col h4 { font-size: 13px; font-weight: 600; color: var(--green-deep); margin-bottom: 10px; }
  .gs-col ul { list-style: none; }
  .gs-col ul li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .gs-col ul li::before { content: '→'; color: var(--green-light); font-size: 11px; }

  .highlight { color: var(--green-light); font-family: monospace; }
  .tag { background: var(--green-deep); color: white; font-size: 10px; padding: 2px 7px; border-radius: 3px; font-weight: 600; margin-left: 4px; }

  @media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
    .gs-columns { grid-template-columns: 1fr; }
    .tab-btn { font-size: 11px; padding: 12px 8px; }
    .section-body { padding: 20px 16px; }
  }